﻿layui.define('layer', function (exports) {
    "use strict";
    var $ = layui.jquery,
        layerTips = parent.layer === undefined ? layui.layer : parent.layer;
    var index = 0;

    var msgbox = {
        showLoading: function () {
            index = layer.load(1, {
                shade: [0.1, '#fff'] //0.1透明度的白色背景
            });
        },
        closeLoading: function () {    
            layer.close(index);
        },
        v: '1.0.0'
    };


    exports('msgbox', msgbox);
});